/* eslint-disable indent */
'use strict';

module.exports = app => {
    const { router, controller } = app;

    // 登录

    router.get('/login', controller.user.loginPage);
    // 注册
    router.get('/register', controller.user.registerPage);

    router.get('/setting', app.middleware.loginChecks.loginCheck, controller.user.settingPage);

    // 广场
    router.get('/square', app.middleware.loginChecks.loginCheck, controller.square.square);

    // eslint-disable-next-line eol-last
};